package com.nhh.v.service

import java.util

import com.nhh.v.dto.NhhwakUserHashRateInfo
import com.nhh.v.mapper.NhhwakCoinDetailsMapper
import com.nhh.v.model.NhhwakCoinDetails
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import scala.collection.JavaConverters._


/**
  * Created by chenkaiming on 2018/9/11.
  */
@Service
class NhhwakCoinDetailsSeivice(@Autowired val nhhwakCoinDetailsMapper: NhhwakCoinDetailsMapper) {
  @Transactional
  def addCoinDetailsRecordList(nhhwakCoindetails: List[NhhwakCoinDetails]): Unit = {
    nhhwakCoinDetailsMapper.addCoinDetailsRecordList(nhhwakCoindetails.asJava)
  }

  @Transactional
  def addCoinDetailsRecord(nhhwakCoindetails: NhhwakCoinDetails): Unit = {
    nhhwakCoinDetailsMapper.insert(nhhwakCoindetails)
  }

}
